package com.hs.sfzy.mapper;

import com.hs.sfzy.entity.ConsultSpecialty;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 李明辉
* @description 针对表【consult_specialty】的数据库操作Mapper
* @createDate 2024-10-25 08:49:48
* @Entity com.hs.sfzy.entity.ConsultSpecialty
*/
public interface ConsultSpecialtyMapper {

    int deleteByPrimaryKey(Long id);

//    int insert(ConsultSpecialty record);

    int insertSelective(ConsultSpecialty record);

    ConsultSpecialty selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ConsultSpecialty record);

    int updateByPrimaryKey(ConsultSpecialty record);
//    删除当前的 specialty_id

   int deleteSpecialtyByConsultId(Long id);
//<!-- 插入新的 specialty_id-->
    int insertSpecialty(@Param("consultId") Long consultId, @Param("specialtyIds") List<Long> specialtyIds);

    List<ConsultSpecialty> selectSpecialtyByConsultId(Long id);

}
